#!/bin/bash

export ARCH=arm

if [ -n "$CROSS_COMPILE_ARM" ]; then
  export CROSS_COMPILE="$CROSS_COMPILE_ARM"
else
  export CROSS_COMPILE=
  test -e $HOME/arm/usr/bin/arm-linux-gcc && export CROSS_COMPILE=$HOME/arm/usr/bin/arm-linux-
fi

if [ -z "$CROSS_COMPILE" ]; then
  echo "Set the CROSS_COMPILE. Cross compiler can be downloaded from http://ftp.denx.de/pub/eldk/4.2/arm-linux-x86/iso/arm-2008-11-24.iso"
  exit 1;
fi

LINUX=linux-2.6.28
BBOX=busybox-1.13.2

CMDARGS="$*"
. build-common.sh

